package com.ftg.learn.day17.controller;

import com.ftg.learn.day17.service.DeptService;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 布衣
 */
public class TestController {

    public static void main(String[] args) {
        BeanFactory beanFactory = new ClassPathXmlApplicationContext("sm/spring.xml");

        DeptService bean = beanFactory.getBean(DeptService.class);
        bean.showAll().forEach(System.out::println);
    }

}
